[1245] Uniformize read-only computation#1508
Conversation
|
This PR also fixes #1342 |
3ab13a6 to
25509a3
Compare
|
This PR updates what is considered read-only as follows:
As a summary, resources are read-only when a user imports them as read-only, or if they contain standard SysML/KerML models. The previous implementation added an extra hypothesis and made resources containing at least one |
| The `org.eclipse.syson.services.grammars` package in `syson-direct-edit-grammar` has been renamed into `org.eclipse.syson.direct.edit.grammars`. | ||
| `AbtractItemUsageBorderNodeDescriptionProvider` has been renamed to `AbstractItemUsageBorderNodeDescriptionProvider`. | ||
| - https://github.com/eclipse-syson/syson/pull/1508[#1245] [syson] Uniformize read-only computation. | ||
| The class `SysMLReadOnlyService` and the interface `ISysMLReadOnlyService` have been removed, use `IReadOnlyObjectPredicate` instead. |
There was a problem hiding this comment.
I didn't mention this API break in the release notes, I don't think it is very useful to the end users. Let me know if I should add it there.
There was a problem hiding this comment.
No, no need to mention API breaks in the release notes
25509a3 to
7045bdc
Compare
310ed1d to
282ef53
Compare
|
|
||
| } | ||
|
|
||
| @DisplayName("GIVEN an empty SysML Project, WHEN the explorer is displayed with KerML and SysML libraries expanded, THEN the library models are visible") |
There was a problem hiding this comment.
I added this test for testing coverage purpose. It tests whether standard library elements are editable/deletable, which wasn't tested before.
282ef53 to
6395963
Compare
Bug: #1245 Signed-off-by: Gwendal Daniel <gwendal.daniel@obeosoft.com>
701c29c to
f518c6c
Compare
Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
f518c6c to
0fb0ece
Compare
Bug: #1245
Fixes #1245
PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,type:)Changelog and release notes
CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adocbeen updated to reference the relevant issues?CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Key highlightssection indoc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Documentation
Tests